<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="rgbaster.js"></script>
    <style>
        body{
            background-color: rgb(217,217,217);
        }
        #abc{
           margin-left: 50%;
        }
    </style>
</head>
<body>
<img id="abc" src="汤色7.png" alt=""/>
</body>
<script>
    var img=document.getElementById('abc');
    RGBaster.colors(img,{
        exclude: [ 'rgb(255,255,255)','rgb(0,0,0)' ],
        success:function(payload){
            console.log(payload.dominant)
            console.log(payload.secondary)
            console.log(payload.palette)
        }
    })
</script>
</html>